package design.onekey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import design.onekey.base.GenericMapper;
import design.onekey.model.UserRole;
import design.onekey.model.dto.UserRoleDto;

import java.util.List;

/**
* @Description: UserRoleMapper类
* @author
* @date 2020-06-05 04:03:38
* @version V1.0
*/
public interface UserRoleMapper extends BaseMapper<UserRole> , GenericMapper<UserRole> {

   /**
    * @Title: getUserRole
    * @Description: 根据用户获取角色信息
    * @param userId
    * @return
    * @author blcloak
    * @date 2020-06-05 05:16:17
    */
   UserRole getUserRole(Long userId);

   /**
    * @Title: tablePagingQuery
    * @Description: 查询表格数据
    * @param userRoleDto
    * @return
    * @author blcloak
    * @date 2020-06-10 09:14:37
    */
   List<UserRoleDto> getTableList(UserRoleDto userRoleDto);
}
